package com.jiangjiang.eshop.inventory.async;

import com.jiangjiang.eshop.inventory.constant.GoodsStockUpdateOperation;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName StockUpdateMessage
 * @Description TODO
 * @Author jhw
 * @Date 2021/6/14 14:19
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StockUpdateMessage {

    /**
     * id
     */
    private String id;
    /**
     * 商品库存更新操作
     * @see GoodsStockUpdateOperation
     */
    private Integer operation;
    /**
     * 核心参数数据
     */
    private Object parameter;
}
